package jm.nj.day08jia.demo05;

/*
 * 转换功能方法
 *       char[] tocharArray()  //把字符串转换为字符型数组
 *       String toLowerCase() //把字符串装换为小写字母的字符串
 *       String toUpperCase() //把字符串转换为全大写的字母
 * */
public class Test01 {
    public static void main(String[] args) {
        String s = "hello";

        char[] chs = s.toCharArray();

        for (int i = 0; i < chs.length; i++) {
            System.out.println(chs[i]);
        }

        System.out.println("===========");
        String s1 = "HELLo";
        System.out.println(s1.toLowerCase());
        System.out.println(s1.toUpperCase());

    }
}
